﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *
 **/

using Irony.Parsing;
using Peter.Common.Tree;

namespace Peter.Logic
{
   /// <summary>
   /// Represents an item the code explorer.
   /// </summary>
   public class ModelCodeItem : ModelTreeViewItem
   {
      /// <summary>
      /// Initializes a new code item model.
      /// </summary>
      /// <param name="parent"></param>
      /// <param name="node">The parse node for the tree item.</param>
      public ModelCodeItem (ModelTreeViewItem parent, ParseTreeNode node)
         : base (parent)
      {
         this.ParseNode = node;
      }

      /// <summary>
      /// Gets the parser tree node object.
      /// </summary>
      public ParseTreeNode ParseNode { get; private set; }
   }
}
